### sparsity Go back to the [[AI Glossary]] The number of elements set to zero (or null) in a vector or matrix divided by the total number of entries in that vector or matrix. For example, consider a 10x10 matrix in which 98 cells contain zero. The calculation of sparsity is as follows: ![The equation for sparcity](https://i.imgur.com/yI41sAL.png) Feature sparsity refers to the sparsity of a feature vector; model sparsity refers to the sparsity of the model weights.